<h1>Listing pets</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Raza</th>
    <th>Age</th>
    <th>Person</th>
    <th>Picture</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @pets.each do |pet| %>
  <tr>
    <td><%= pet.name %></td>
    <td><%= pet.raza %></td>
    <td><%= pet.age %></td>
    <td><%= pet.person_id %></td>
    <td><%= pet.picture %></td>
    <td><%= link_to 'Show', pet %></td>
    <td><%= link_to 'Edit', edit_pet_path(pet) %></td>
    <td><%= link_to 'Destroy', pet, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Pet', new_pet_path %>
